package leecode

func mirrorTree(root *TreeNode) (result *TreeNode) {
	//递归结束条件
	if root == nil {
		return
	}
	result = root
	root.Left, root.Right = root.Right, root.Left
	mirrorTree(root.Left)
	mirrorTree(root.Right)
	return
}
